
#ifndef CONEARHANDLER_H
#define CONEARHANDLER_H

#include <BHandler>
#include <BConearRestraint>
#include <BTextual>
#include <BBody>

using namespace BWE;

class ConearHandler : public BHandler
{
public:
	ConearHandler();
	~ConearHandler();

protected:
	virtual void attached(BViewer* viewer);
	virtual void detached(BViewer* viewer);

	virtual void paint(BPainter& painter);
	virtual void render(BRender& render);

	virtual void styleEvent(const BEvent& event);

protected:
	BHolder<BBody>			_nodeA;
	BHolder<BBody>			_nodeB;
	BHolder<BConearRestraint>	_restraint;
	BHolder<BTextual>			_lengthText;
};

#endif

